#include "Client.h"

Sign::Sign(){
	memset(lines, 0, sizeof(lines));
	location = Location();
	block = NULL;
}

Sign::Sign(Block* b){
	memset(lines, 0, sizeof(lines));
	location = Location();
	block = b;
}

Sign::Sign(int x, int y, int z){
	memset(lines, 0, sizeof(lines));
	location = Location(x, y, z);
	block = NULL;
}

Sign::Sign(Block* b, int x, int y, int z){
	memset(lines, 0, sizeof(lines));
	location = Location(x, y, z);
	block = b;
}

Location& Sign::getLocation(){
	return location;
}

void Sign::setLocation(Location loc){
	location.setXYZ(loc.getX(), loc.getY(), loc.getZ());
}

void Sign::setLine(int i, const char* line){
	strncpy(lines[i], line, 32);
}
